import numpy as np

a = np.array([[2, 1, 3]])
v = np.transpose(a)
print(a)
print(v)
# [[2 1 3]]
# [[2]
#  [1]
#  [3]]

a = np.array([[2, 1, -2], [3, 0, 1], [1, 1, -1]])
b = np.transpose(np.array([[-3, 5, -2]]))
# a * x = b
x = np.linalg.solve(a, b)
print(a)
print(b)
print(x)
# [[ 2  1 -2]
#  [ 3  0  1]
#  [ 1  1 -1]]
# [[-3]
#  [ 5]
#  [-2]]
# [[ 1.]
#  [-1.]
#  [ 2.]]
